package com.autologistics.dao;

import java.util.List;

import com.autologistics.model.Goods;

public interface GoodsDao {
	public List<Goods> listAll(int userId);
	public List<Goods> searchGoods(int userId,String name);
	public void addGood(Goods newGood);
	public Goods queryGoodById(int id);
	public void updateGood(Goods good);
	public void deleteGood(int goodId);
	
	public int allRow(int userId);
	public List<Goods> queryForOnePage(final int offset, final int length,int userId);
	public List<Goods> getGoodsByUserAndKind(int userId,int kind);
	public List<Goods> listAllGoods();
}
